package him.action.board;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import him.action.Action;
import him.action.ActionForward;
import him.dto.bbs.Edu_bbsDTO;

import him.service.EduBoardService;

import him.serviceimple.EduBoardServiceImple;


public class EduListAction implements Action {

	@Override
	public ActionForward execute(HttpServletRequest request,
			HttpServletResponse response) {
		ActionForward actforward = new ActionForward();
		EduBoardService service = EduBoardServiceImple.getInstance();
		
		List<Edu_bbsDTO> list = service.getEduTitleList();
		System.out.println("list"+list);
		
		request.setAttribute("edulist", list);
		actforward.setUrl("edualllist");
		
		return actforward;
	}

}
